<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <script src="bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <style>
        .layout {
            width: 375px;
            height: 667px;
            margin: 50px auto;
            border: solid gray 0px;
        }
        img {
            position: absolute;
            left: 33.5%;
            top: -16%;
        }
        button[type='submit'] {
            position: relative;
            left: -3%;
        }
        td,a{
            text-align: center;
        }
        button {
            margin: auto 35%;
        }
        .time {
            line-height: 40px;
            height: 140px;
            width: 100%;
        }
        h3 {
            text-align: center;
        }
        td {
            width: 50%;
        }
    </style>
</head>
<body>
<div class="layout">
    <div class="time"></div>
    <img src="pic/logo.png" alt="">
    <div class="table-responsive">
        <table class="table table-hover table-bordered" id="menzheng">
            <h3>门诊单</h3>
<!--            <tr>-->
<!--                <td class="info">费用类型</td>-->
<!--                <td class="info">当班挂号</td>-->
<!--            </tr>-->
<!--            <tr>-->
<!--                <td>就诊科室</td>-->
<!--                <td>妇科门诊</td>-->
<!--            </tr>-->
<!--            <tr>-->
<!--                <td>医生名称</td>-->
<!--                <td>谢晓峰</td>-->
<!--            </tr>-->
<!--            <tr>-->
<!--                <td>就诊日期</td>-->
<!--                <td>2019-10-31</td>-->
<!--            </tr>-->
<!--            <tr>-->
<!--                <td>就诊时段</td>-->
<!--                <td>下午</td>-->
<!--            </tr>-->
<!--            <tr>-->
<!--                <td>就诊人</td>-->
<!--                <td>谢晓峰</td>-->
<!--            </tr>-->
        </table>

</body>

<script>
    $.ajax({
        url:"/patientinformation/getxinxi",
        type:"get",
        dataType:"json",
        success: function (data) {

            for(var i in data){
                $("#menzheng").append("<tr ><td class='info'>费用类型</td><td class='info'>当班挂号</td></tr>" +
                    "<tr><td>就诊科室</td><td>"+data[i].deptype+"</td></tr><tr><td>医生名称</td><td>"+data[i].staname+"</td></tr>" +
                    "<tr><td>就诊日期</td><td>"+data[i].patrdate+"</td></tr><tr><td>就诊时段</td><td>下午</td></tr>" +
                    "<tr><td>就诊人</td><td>"+data[i].pname+"</td></tr>")
            }

        }
    });






</script>


</html>